package com.jcl.recruit.register.service;

/**
 * @ClassName RegisterEnum
 * @Description TODO
 * @Author yyliu
 * @Date 2018/9/14 12:10
 * @Version 1.0
 **/
public enum RegisterEnum {

    CORP_EXIST(RegisterResult.CORP_EXIST_CODE, "您注册的企业已经存在");

    private String index;

    private String msg;

    RegisterEnum(String index, String msg){
        this.index = index;
        this.msg = msg;
    }

    public String getIndex() {
        return index;
    }

    public static String getName(String index) {
        RegisterEnum[] var1 = values();
        for(int i = 0; i < var1.length; i ++ ){
            RegisterEnum status = var1[i];
            if(status.getIndex().equals(index)){
                return status.msg;
            }
        }
        return null;
    }
}
